package com.zzw.bean;

import java.util.Arrays;
import java.util.Date;

public class Roles extends BasicEntity {
    private Integer id;

    private String name;

    private String description;

    private Date createTime;

    private Boolean status;

    private String[] menusId;//要关联的菜单组

    private Integer[] usersId;//关联的用户组

    private Integer[] permissionsIds;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public String[] getMenusId() {
        return menusId;
    }

    public void setMenusId(String[] menusId) {
        this.menusId = menusId;
    }

    public Integer[] getUsersId() {
        return usersId;
    }

    public void setUsersId(Integer[] usersId) {
        this.usersId = usersId;
    }

    public Integer[] getPermissionsIds() {
        return permissionsIds;
    }

    public void setPermissionsIds(Integer[] permissionsIds) {
        this.permissionsIds = permissionsIds;
    }

    @Override
    public String toString() {
        return "Roles{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", description='" + description + '\'' +
                ", createTime=" + createTime +
                ", status=" + status +
                ", menusId=" + Arrays.toString(menusId) +
                ", usersId=" + Arrays.toString(usersId) +
                ", permissionsIds=" + Arrays.toString(permissionsIds) +
                '}';
    }
}
